<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/taglib/jstl.jsp" %>

<div style="margin:2px 2px 2px 2px;">
	<table class="left-table">
	<tr>
		<td class="fnTitleTd">코드 (명칭)</td>
		<td class="fnContsTd">${fnInfo.fnId} (${fnInfo.cdAlias})</td>
	</tr>
	<tr>
		<td class="fnTitleTd">기능 이름</td>
		<td class="fnContsTd">
			<div>
				<div style="float:left;">${fnInfo.fnAlias}</div>
				<div style="float:left;">&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;&nbsp;Highest Level in group :</div>
				<div style="float:left;"> ${fnInfo.fnHighestLevlYN}</div>
				<div style="clear:both;"></div>
			</div>
		</td>
	</tr>
	<tr>
		<td class="fnTitleTd">URL</td>
		<td class="fnContsTd">${fnInfo.fnServletUrl}</td>
	</tr>
	
	
	<tr>
		<td class="fnTitleTd">활성화 옵션</td>
		<td class="fnContsTd">
			<div style="float:left; width:10px;">&nbsp;</div>
		
			<div style="float:left; text-indent: 0px; 
						width:160px; margin:3px 0 3px 0; border:1px solid gray;">
			
				<div style="clear:both;"></div>
				<div style="width:100%; height:18px; line-height:18px; background-color:#D2D2D2; 
							color:#666666; text-align:center; font-weight:normal;">사용 여부</div>
					
				<div style="margin:1px 0 0 10px; padding:10px 0 10px 0; width:100%;">
					<div style="float:left;">${fnInfo.fnUseYN}</div>
					<div style="clear:both;"></div>
				</div>
			</div>
			
			<div style="float:left; width:10px;">&nbsp;</div>
			
			<div style="float:left; text-indent: 0px; 
						width:192px; height:98px; margin:3px 0 3px 0; border:1px solid gray;">
						
				<div style="clear:both;"></div>
				<div style="width:100%; height:18px; line-height:18px; background-color:#D2D2D2; 
							color:#666666; text-align:center; font-weight:normal;">Set Private-Group</div>
					
				<div style="margin:1px 0 0 0; overflow-y:scroll; overflow-x:hidden; width:100%; height:78px;">
					
					<c:choose>
						<c:when test="${not empty privateGrpLst}">
							<c:forEach var="item" items="${privateGrpLst}" varStatus="i">
							<c:if test="${item.privateGrpFnYN eq 'Y'}">
								<div style="margin:3px 0 0 3px;">
									<div style="float:left;">&nbsp;${item.grpAlias}</div>
									<div style="clear:both;"></div>
								</div>
								
								<c:if test="${not i.last}">
									<div style="width:100%; height:1px; border:1px dotted #D2D2D2;"></div>
								</c:if>
							</c:if>
							</c:forEach>
						</c:when>
						<c:otherwise><div style="margin:3px 0 0 0;">설정할 수 있는 그룹이 없습니다.</div></c:otherwise>
					</c:choose>
					
				</div>
			</div>
			
			<div style="clear:both;"></div>
		</td>
	</tr>
	
	
	<tr>
		<td class="fnTitleTd">설명</td>
		<td class="fnContsTd">
			<div style="margin-left:margin:2px 0px 2px 10px; 
				text-indent:0px; height:80px; overflow-y:auto;">${cfn:chgHtmlNewLine(fnInfo.fnDesc) }</div>
		</td>
	</tr>
	</table>
</div>
<div class="fnBtnsDiv"><input type="button" id="jqwCloseBtn" value="닫기" /></div>

<script type="text/javascript" src="/resources/js/views/template/system/function/_detail.js"></script>